var app = getApp()
Page({
  data: {
    navbar: ['一楼', '二楼', '三楼'],
    currentTab: 0,
    path:'',
    window:'',
    loadinghidden:false,
    json:"",
    array:""
  },
  onReady:function(){
    wx.cloud.callFunction({
      name:"getNum"
    }).then(res=>{
      this.setData({
        json:res.result
      })
    })
  },
  onLoad: function (options) {
    var that=this
    wx.cloud.callFunction({
        name:"getFilePath"
    }).then(res=>{
      this.setData({path:res.result})
    })

    wx.cloud.callFunction({
        name:"mysql"
    }).then(res=>{
        const result=res.result
        this.setData({window:result})
        this.setData({loadinghidden:true})
        
    })
},
  navbarTap: function(e){
    this.setData({
      currentTab: e.currentTarget.dataset.idx
    })
  },
})